#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <algo.h>
#include <iostream.h>

#ifdef MAIN
#define foreach0_test main
#endif
#endif
static void print(int a_)
{
  cout << a_ << ' ';
}
int foreach0_test(int, char**)
{
  cout<<"Results of foreach0_test:"<<endl;

#ifndef ACORN_CFRONT
int numbers[10] = { 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 };
#else
static int numbers[10] = { 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 };
#endif

  for_each(numbers, numbers + 10, print);
  cout << endl;
  return 0;
}
